//动态脚本库
(function (config) {
    (function (a, b) {
        function c(a, m) {
            var c = b.createElement("script");
            c.charset = "utf-8";
            c.src = a;
            c.type = "text/javascript";
            if (m !== undefined) c.setAttribute("data-main", m);
            (a = h || k) && a.appendChild(c);
            return c;
        }
        
        function d() {
            var a = [config[0] + config[1][0], config[0] + config[1][1], config[0] + config[1][2]];
            var b = c(a[0]);
            b.onload = b.onreadystatechange = function () {
                if (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete') {
                    var m = (c(a[1], a[2]));
                    m.onload = m.onreadystatechange = function(){
                       window.mUrl = "model";
                        
                        m.onload = m.onreadystatechange = null;
                    };
                    b.onload = b.onreadystatechange = null;
                }
            };
        }
        var h = b.head || b.getElementsByTagName("head")[0], k = b.body || b.getElementsByTagName("body")[0];
        d();
    })(window, document);
})(["http://192.168.2.145/BIMAPI/Public", ["/build/view.js", "/build/require.js", "/index/main.js"]]);
// })(["http://192.168.2.204:1001/Public", ["/build/view.js", "/build/require.js", "/index/main.js"]]);



//脚本版本控制伪代码（用于本地缓存Url）
// (function (config) {
//     (function (a, b) {
//         function c(a) {
//             var c = b.createElement("script");
//             c.charset = "utf-8";
//             c.src = a;
//             c.id = "amap_main_js";
//             (a = h || k) && a.appendChild(c)
//         }
//
//         function d() {
//             var a = ["v=" + config[4], "key=" + config[0], "cache=0"];
//             config[7] && a.push("plugin=" + config[7]);
//             config[5] && a.push("callback=" + config[5]);
//             for (var d = config[2] + "/maps?" + a.join("&"), a = config[2].split(",")[0], e = b.getElementsByTagName("script"), f, k = 0; k < e.length; k += 1) if (0 === e[k].src.indexOf(a.split(":")[1] + "/maps?")) {
//                 f = e[k];
//                 break
//             }
//             config[5] || f && f.async ? c(d) : (b.write('<script crossorigin="anonymous" id="amap_main_js" src="' +
//                 d + '" type="text/javascript">\x3c/script>'), setTimeout(function () {
//                 b.getElementById("amap_main_js") || c(d)
//             }, 1))
//         }
//
//         function e() {
//             for (var a in localStorage) localStorage.hasOwnProperty(a) && 0 === a.indexOf("_AMap_") && localStorage.removeItem(a)
//         }
//
//         var f = function () {
//             var a = !1;
//             try {
//                 var b = (new Date).getTime();
//                 localStorage.setItem("_test", b);
//                 localStorage.getItem("_test") == b && (a = !0)
//             } catch (c) {
//             }
//             return a
//         }(), h = b.head || b.getElementsByTagName("head")[0], k = b.body || b.getElementsByTagName("body")[0];
//         if (f) try {
//             var l = JSON.parse(localStorage.getItem("_AMap_raster"));
//             if (l && "1537175198783" === l.version) config.jA = !0, eval(l.script); else throw e(), Error("localStorage's version is " + l.version + ", but the latest version is 1537175198783");
//         } catch (m) {
//             d()
//         } else d()
//     })(window, document);
// })(
//     [
//         "您申请的key值",
//         [120.856804, 30.675593, 122.247149, 31.872716, 121.472644, 31.231706],
//         "https://webapi.amap.com",
//         1,
//         "1.4.10",
//         null,
//         "310000",
//         "Map3D,AMap.Scale",
//         true,
//         true,
//         true,
//         true,
//         "1537277450-1"
//     ]
// );